package com.zjf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;


@TableName("cart")
@Data
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "cartId", type = IdType.AUTO)
    private Integer cartId;

    private Integer foodId;


    private Integer businessId;

    private String userId;


    private Integer quantity;

    @TableField(exist = false)
    private Food food;

    @TableField(exist = false)
    private Business business;

}
